
module WorkflowPlus
  extend ActiveSupport::Concern

  module InstanceMethods

    def state_label
      model_name = self.class.name.demodulize.downcase
      I18n.t "workflow.#{model_name}.#{workflow_state}"
    end

  end

  def self.included base
    base.send :include, InstanceMethods
  end

end
